package com.itqf.Service.Requestion;

import com.github.pagehelper.PageInfo;
import com.itqf.entity.Requestion;
import com.itqf.entity.User;
/**
 * 大帅 2019/10/14 21:21
 */
import java.util.List;

public interface RequestionService {
    //查询所有 问题
    public PageInfo<Requestion> findall(int pageindex, int pagesize,
                                        String requestiontitle );
    //新增
    public int insert(Requestion requestion);

    //用户删除
    public int delete(int requestionid,String userid);

    //修改
    public int updateByPrimaryKey(Requestion requestion);

//    模糊查询
    public List<Requestion> findbyname(String requestiontitle);

//    用户提问增加
    int insertrequestion(String originalFilename, String userid, String requestionTitle);

    //用户提问修改
    int updateAnserer(String originalFilename, String userid, String answerTitle, int requestionId);
}
